import { configureStore } from "@reduxjs/toolkit";
import UserInfoStore from "./UserInfo/index.ts";
import ArticleTempDataStore from "./ArticleTempData/index.ts";
import TempToken from "./TempToken/index.ts";

const store = configureStore({
  reducer: {
    UserInfoStore,
    ArticleTempDataStore,
    TempToken,
  },
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
export default store;
